package com.android.inestpin.model.detail;


import com.android.inestpin.utils.MyLog;
import com.android.inestpin.utils.okhttp3.Callback;
import com.google.gson.Gson;


import okhttp3.Response;

/**
 * Created by Administrator on 2018/3/8.
 */

public abstract class getCartCallback  extends Callback<getcartdata> {
    @Override
    public getcartdata parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        MyLog.e("inest","getcartdata="+string);
        getcartdata data = new Gson().fromJson(string, getcartdata.class);
        return data;
    }

}
